﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Remoting.Channels;
using System.Text;
using System.Threading.Tasks;

namespace Soft.Net
{
    public class ClientIPServerSinkProvider : IServerChannelSinkProvider
    {
        
        public IServerChannelSinkProvider Next { get; set; }

        public IServerChannelSink CreateSink(IChannelReceiver channel)
        {
            IServerChannelSink nextChannelSink = null;
            if (this.Next != null)
            {
                nextChannelSink = this.Next.CreateSink(channel);
            }
            return new ClientIPServerSink(nextChannelSink);
        }

        public void GetChannelData(IChannelDataStore channelData)
        {
        }
    }
}
